<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
      
      <f:view>

<body>
<center>
<h1>Java Learning Center</h1>


<h:form>
<h:outputText value="Please Enter Student Information"/>
<h:panelGrid id="studentFeeInfo" columns="3" border="1" bgcolor="pink">
<h:outputText value="Batch Id"/>
<h:inputText id="Batchid" label="Batch Id" value="#{studentBean.bid}"
 required="true" size="25" style="color:blue;font-size:30;font-style:bold" >
 <f:converter converterId="bidconverter"/>

</h:inputText>
<h:message for="Batchid" style="color:red;font-size:30"/>

<h:outputText value="Student Id"/>
<h:inputText id="StudentId" label="Student Id" value="#{studentBean.sid}"
 required="true" size="25" style="color:blue;font-size:30;font-style:bold" >
 <f:converter converterId="sidconverter"/>
</h:inputText>
<h:message for="StudentId" style="color:red;font-size:30"/>


<h:outputText value="Fee Amount"/>
<h:inputText id="FeeAmount" label="Fee Amount" value="#{studentBean.amount}"
 required="true" size="25" style="color:blue;font-size:30;font-style:bold" >

<f:validateDoubleRange minimum="5555.00" maximum="9999.00"/>
<f:convertNumber minFractionDigits="4" maxFractionDigits="6"/>

</h:inputText>

<h:message for="FeeAmount" style="color:red;font-size:30"/>


<h:outputText value="Payment Date"/>
<h:inputText id="PaymentDate" label="Payment Date" value="#{studentBean.paymentDate}"
 required="true" size="25" style="color:blue;font-size:30;font-style:bold" >
 <f:convertDateTime pattern="dd/MM/yyyy"/>

</h:inputText>

<h:message for="PaymentDate" style="color:red;font-size:30"/>


</h:panelGrid>
<h:commandButton id="submit" value="Add Fee" action="#{studentBean.register}"/>
 
 </h:form>
 </center>

</body>


</f:view>
</html>
